First look at the implementation of the effect diagram
Below is a few words to say, the following is the implementation of the sample code
#import
typedef void (^alertresult) (Nsinteger index);
@interface Xlalertview:uiview
@property (
Today, in the classics, someone turned this effect on its own.
http://bbs.blueidea.com/thread-2688074-1-1.html
Like the Lightbox effect, or the moment before Windows shuts down the system, a dim background for highlighting themes is being used more
////czappview.m//Application Management////Created by Yaguangzhu on 15/8/1.//Copyright (c) 2015 Yaguangzhu. All rights reserved.//#import "CZAppView.h"#import "App.h"@interfaceCzappview () @property (weak, nonatomic) Iboutlet Uiimageview*Imgviewicon,
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// More javascript from http://www.smallrain.net
Function sAlert (str ){
Var msgw, msgh, bordercolor;
Msgw = 400; // The width of the prompt
Function sAlert ()
{
Var msgw, msgh, bordercolor;
Msgw = 450;
Msgh = 120;
Titleheight = 25;
Bordercolor = \ "# effece8b \";
Var sWidth, sHeight;
SWidth = screen. width; // obtain the width and height of the screen. For other parameters, see the
Dynamic scripts
We can insert JavaScript code into the page by using the element in the page. There are two ways: one is through the SRC attribute referencing the external JS file, one is to use this element to include a section of JS code. The so-
function Salert ()
{
var Msgw,msgh,bordercolor;
msgw=450;
msgh=120;
titleheight=25;
bordercolor = "#104E8B";
var swidth,sheight;
Swidth=screen.width; Take the width and height of the screen. Other parameters see the article screen wide
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.